package com.tledu.spring06.spring01.service;

import com.tledu.spring06.spring01.dao.UserDao;
import lombok.Setter;

/**
 * @author Antg
 * @date 2021/8/522:08
 */
public class UserServiceImpl8 implements UserService {
    @Setter
    private UserDao userDao;

    @Override
    public void testService() {
        System.out.println("测试生命周期的bean执行了");
        userDao.daoTest();
    }

    public void init() {
        System.out.println("UserServiceImpl8被初始化了");
    }

    public void destroy() {
        System.out.println("UserServiceImpl8被销毁了");
    }
}
